body { line-height: 1.33; background-position: -220px -40px; }

#header { height: 150px; padding: 44px 10px 0; background: red; }
#header::after { content: "."; clear: both; display: block; height: 0; visibility: hidden; }

#nav { top: 40px; right: 10px; }
#nav li { margin: 0 0 5px 5px; }
#nav li:nth-child(4) { clear: left; }
#header #nav a { width: auto; height: auto; padding: 1px 3px; text-shadow: #148396 2px 1px 1px; }
#nav span { display: none; }

#address { top: 0; right: 0; height: 21px; padding: 3px 0 0; width: 100%; }
#address p { margin: 0 10px 0 0; }
#address p:first-child { display: none; }

#container, #content_main, #content_sub, #footer_sleeve { width: 100%; float: none; background-image: none; }

body[orient=portrait] { width: 320px; }
body[orient=landscape] { width: 480px; }

#content { padding: 60px 10px 10px; }

#content_sub { margin-top: 20px; }
#content_sub .panel { margin-top: 10px; }

#footer { padding: 10px 0 1px; margin: 0; }
#footer_sleeve { background: none; }
#footer #footer_sleeve>* { float: left; margin: 0 10px 10px; }
#worm { display: none; }

h1 { font-size: 2.5em; }
p.intro { margin: 0 0 10px; }
img { max-width: 100%; }

#content_main form { padding: 10px; }
input.text, textarea { width: 270px; }

/* specific pages */

#body_home { background-image: url(../images/bg_html.png); background-position: -220px 70px;}
#link_ruby_on_rails { display: none; }

#h1_home { background: none; width: auto; height: auto; text-indent: 0; margin: 10px 0 65px; font-size: 2em; }
#h1_home span { display: block; text-shadow: #148396 2px 1px 1px; }

#our_work h2 { color: #000; margin-bottom: 10px; }
#our_work li { float: none; margin: 0 0 10px; padding: 0; background: none; }
#our_work li a { width: auto; height: auto; padding: 0; font-size: 1.1em; }
#our_work li img { position: static; display: block; margin: 0 0 10px; }

#intro, #blog_posts { width: auto; float: none; margin: 0 0 20px; }
#blog_posts h3 { font-size: 1.2em; }

#content .thumbs li, #content .thumbs .row_leader { margin-left: 0; width: 100%; }
.thumb { height: auto; }

#gallery img { width: 100%; height: auto; }